<template>
    <!-- 工作台 -->
    <entity-manager :fields="fields" :queryFields="queryFields" apiPrefix="/base/workbench" :tree="false" ref="entityManagerRef" :params="params"
                    operationsWidth="230px">
    </entity-manager>
</template>

<script setup>

import { ref } from "vue"

const fields = [
	{label: "工作台名称", prop: "name", max: 255},
	{label: "工作台类型", prop: "type", max: 64},
	{label: "工作台配置", prop: "config", max: 255},
	{label: "已发布配置", prop: "publishedConfig", max: 255},
	{label: "工作台状态", prop: "status", max: 16},
    {label: "添加时间", prop: "createTime", width: "160px", system: true},
    {label: "修改时间", prop: "updateTime", width: "160px", system: true}
]
const queryFields = []
const entityManagerRef = ref()
const params = ref({})

function reload() {
    entityManagerRef.value.reload()
}
</script>